//
// Created by seeed on 25-8-15.
//

#include "hardware/recorder.h"
#include "hardware/button.h"
#include "hardware/led.h"
#include "GObject.h"
#include "GData.h"
#include "hardware/relay.h"
#include "U8g2lib.h"  // 添加U8g2库头文件
#include "U8x8lib.h"  // 添加U8x8库头文件

/* 定义GObject.h中声明的全局对象 */
Led led0(LED0_Pin, LED_MODE_PWM);    // LED0对象
Recorder speaker0(recoder0_play_Pin); // 录音对象
Button button0(button0_Pin);         // 按键对象
Relay relay0(relay_Pin);             // 继电器对象

// 创建OLED对象
U8G2_SSD1306_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /*reset=*/ U8X8_PIN_NONE);
OLED oled0(&u8g2, u8g2_font_wqy14_t_gb2312);   // OLED对象 中文显示

